package com.example.demo.controller.admin;

import com.example.demo.service.UserService;
import com.example.demo.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author shenb
 * @date 2022-07-15 14:06
 */
@RequestMapping("users")
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping
    public Map<String, String> list() {
        userService.list();
        return new HashMap<>();
    }

    @GetMapping("1")
    public void test1() {
        userService.test1();
    }

    @GetMapping("2")
    public void test2() {
        userService.test2();
    }

    @GetMapping("3")
    public void test3() {
        userService.test3();
    }

}
